<!--
 * @Author: 周洋 1430536748@qq.com
 * @Date: 2024-08-14 09:34:48
 * @LastEditors: 周洋 1430536748@qq.com
 * @LastEditTime: 2024-08-23 00:17:21
 * @version: 1.2.5
 * @Description: 
-->
<script setup lang="ts">
import { props } from '../props';
const { content, icon, text, type } = defineProps(props);
import { SvgIcon } from '../../../SvgIcon'
const confirmEvent = () => { }
</script>
<template>
    <el-popconfirm teleported :width="230" :title="content" @confirm="confirmEvent">
        <template #reference>
            <el-button auto-insert-space :link="link" :type="type">
                <template #icon>
                    <SvgIcon :icon="icon" />
                </template>
                <em v-if="text">{{ text }}</em>
            </el-button>
        </template>
    </el-popconfirm>
</template>
